home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 32
/
Aminet 32 (1999)(Schatztruhe)[!][Aug 1999].iso
/
Aminet
/
comm
/
tcp
/
ftpchmod.lha
/
ftpCHMOD
/
ftpCHMOD.doc
< prev
next >
Wrap
Text File
|
1999-05-31
|
3KB
|
90 lines
ftpCHMOD 1.0
by Chris Young
© 1999 Unsatisfactory Software
ftpCHMOD is a little CLI command which will enable you to change file
permissions on a remote FTP server.
All use of this software is at your own risk. No warranty is expressed or
implied. I cannot accept responsibility for any damage or loss of data
caused by direct or indirect use of ftpCHMOD.
USAGE
-----
Template: CHMOD/N/A,PATH/A,USER/K/A,PASS/K/A,PORT/K/N
Where CHMOD/N/A is a three digit number:
Owner Group Other
Readable 4 4 4
Writable 2 2 2
Executable 1 1 1
Add up the numbers in each column. eg. if you want the file to to be
readable and writable by you (owner), then the first digit will be "6". If
you want the members of your group to have read-only access to the file,
then the second digit will be "4". If you want everybody else to have no
access, "0" should be the last digit.
The most useful combinations (in the context of web space) are:
755 - Gives you full permissions, and everybody else read/execute
(eg. CGI scripts)
666 - Gives everybody read/write permission
(eg. files that scripts need to write to)
644 - Gives you read/write permission, and everybody else read-only
(eg. most other files)
PATH/A is the full path to the file, including hostname
eg. ftp.domain.com/path/file
USER/K/A and PASS/K/A specify your username and password.
PORT specifies the TCP port number to connect to (defaults to 21)
Example
-------
ftpCHMOD 755 webspace.domain.net/cgi-bin/mailform.cgi USER username PASS
password
Will connect to "webspace.domain.net", login as user "username" with
password "password", and set the permissions for the file
"cgi-bin/mailform.cgi" to 755 (see above)
ftpCHMOD should return:
Looking up host...
Attempting to connect...
Logging in...
Changing directory...
Setting permissions...
200 CHMOD command successful.
If anything else appears, an error has occured. In particular, ftpCHMOD
doesn't always return the result of the CHMOD command - if there is no
result, then the most likely cause is that your username and/or password is
incorrect or that the file does not exist. Remember that most servers are
CASE SENSITIVE.
FUTURE
------
This was originally intended to be a CHMOD extension for FTPMount. I still
have plans to write one, and that's what the future of this little program
is going to be.
CONTACT
-------
In case you have problems, questions or comments about ftpCHMOD, my e-mail
address is: chrisdpy@bigfoot.com
Unsatisfactory Software: It's not that bad.
http://www.unsatisfactory.freeserve.co.uk